package observer_2.observable;

/**
 * Created by zjh on 2017/9/19.
 */
public class WeatherStation {

    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        CurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay(weatherData);

        weatherData.setMeasurements(12, 22, 34.1f);
        weatherData.setMeasurements(123, 341, 64.1f);
        weatherData.setMeasurements(343, 541, 94.1f);
    }
}
